package org.anti996.lms.service;

import org.anti996.lms.model.Booking;
import com.baomidou.mybatisplus.extension.service.IService;
import org.anti996.lms.model.BookingOutput;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 货单 服务类
 * </p>
 *
 * @author The Anti996 Authors
 * @since 2022-07-15
 */
public interface BookingService extends IService<Booking> {
    //分页查询货单
    Map<String, Object> findPage(int current,int limit);
    //根据货单号查询货单内容
    Booking findBybNum(Integer bNum);
    //根据发货客户查询
    Booking findBycIdFrom(Integer cIdFrom);
    //根据收货客户查询
    Booking findBycIdTo(Integer cIdTo);
    //根据发货仓库查询
    Booking findBywIdFrom(Integer wIdFrom);
    //根据收货仓库查询
    Booking findBywIdTo(Integer wIdTo);
    //根据运单号查询
    List<Booking> findBytNum(Integer tNum);
    // 返回所有订单数据，完整版
    List<BookingOutput> listAllOutput();
    List<BookingOutput> listAllOutputByOperator(String username);
    List<BookingOutput> listAllOutputByWarehouse(String username);
    BookingOutput findById(int b_num);
    //查询已到达未签收货单
    List<Booking>  finduncheckout(Integer w_id);
    //查询所有已结算账单
    List<Booking>  showAllmoney();
}
